-- GENERATED SPELL FOR [Terrordale Spirit] --


function spell0_14564(pUnit, Event) --@Wailing Dead,Self--
pUnit:FullCastSpellOnTarget(7713,pUnit)
pUnit:RegisterEvent('Sorts_14564', 6321, 1)
end

function Sorts_14564(pUnit, Event)
local choix_sorts_14564 = math.random(0, 0)
if choix_sorts_14564 == 0 then
pUnit:RegisterEvent('spell0_14564', 1, 1)
end
end

function mob14564_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14564', math.random(1500, 3000), 1)
end

function mob14564_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14564_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14564_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14564, 1, 'mob14564_Action')
RegisterUnitEvent(14564, 2, 'mob14564_Leave')
RegisterUnitEvent(14564, 3, 'mob14564_Kill')
RegisterUnitEvent(14564, 4, 'mob14564_Die')
